how bail is grated by the court